package com.muyu.danmo.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.common.core.enums.PayMethod;
import com.muyu.common.core.enums.PayStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 拾贝会员对象 danmo_collect_member
 * 
 * @author kongzong
 * @date 2024-12-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoCollectMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 拾贝会员记录ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /**
     * 个人信息ID
     */
    @Excel(name = "个人信息ID")
    private Long informationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal transactionAmount;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradingHours;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private PayStatus paymentStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private PayMethod paymentMethods;

    /** 订阅周期（月为单位） */
    @Excel(name = "订阅周期", readConverterExp = "月=为单位")
    private Long subscriptionPeriod;


    /**
     * 支付系统订单号
     */
    private String payOrderNo;


    /**
     * 支付的手机号
     */
    private Long tel;



    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("userId", getUserId())
            .append("transactionAmount", getTransactionAmount())
            .append("tradingHours", getTradingHours())
            .append("paymentStatus", getPaymentStatus())
            .append("paymentMethods", getPaymentMethods())
            .append("subscriptionPeriod", getSubscriptionPeriod())
            .toString();
    }
}
